{% extends "base1.html"%}
 {% block middle %}
     <style>
.divcss5{ border:1px dashed #a09ba2; height:75px; width:850px}
     /*分页*/
.pagination{
 margin-bottom: 20px;
}
.pagination .pagination-item{
  border: solid 1px #d6d6d6;
  border-radius: 0.2rem;
  color: #7d7d7d;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  padding: 5px 9px;
 cursor: pointer;
}
     .href-title:hover{
        color: #099B43;
    }
     .item-title{
         font-size: 15px;
         {#font-weight: bolder;#}
         margin-bottom: 15px;
         display: inline-block;
     }

</style>
     <div class="content-body">
        <div class="container">
            <div class="row">
                <main class="col-md-8">
     {% for i in data %}
     <article class="post post-1">
                        <header class="entry-header">
                            <h1 class="entry-title">
                                <a href="/detail/{{ i.hid }}/"><h3>{{ i.title }}</h3></a>
                            </h1>
         <div class="entry-meta">
          <span class="post-category"><a href="#"></a></span>
         <span class="post-date"><a href="#"><time class="entry-date"
            datetime="2012-11-09T23:15:57+00:00">{{ i.add_time}}</time></a></span>
                                <span class="post-author"><a href="#">zhping</a></span>
         <span class="comments-link"><a href="#">{{ i.like_count }} 点赞</a></span>
         <span class="views-count"><a href="#">{{ i.count }} 阅读</a></span>
         </div>
         </header>
          <div class="entry-content clearfix">
          <div class="read-more cl-effect-14">
              <a href="/detail/{{ i.hid }}/" class="more-link">继续阅读 <span class="meta-nav">→</span></a>
          </div>
         </div>
                    </article>
   {% endfor %}



                </main>

                <aside class="col-md-4">
                    <div class="widget widget-recent-posts">
                        <h3 class="widget-title">排行</h3>
                        <ul>
                            {% for i in count_title %}
                                <li>
                                    <a href="/detail/{{ i.hid }}/">{{ i.title }}</a>
                                </li>
                            {% endfor %}
                        </ul>

                    </div>
                    <div class="widget widget-archives">
                        <h3 class="widget-title">最新文章</h3>
                        <ul>
                            {% for info in new_title %}
                                <li>
                                    <a href="/detail/{{ info.hid }}/">{{ info.title }}</a>
                                </li>
                            {% endfor %}
                        </ul>
                    </div>

                    <div class="widget widget-category">
                        <h3 class="widget-title">分类</h3>
                        <ul>
                            {% for title in cate_name %}
                                <li>
                                    <a href="/cate_list/{{ title.category_id }}/">{{ title.category_name }}<span
                                            class="post-count"></span></a>
                                </li>
                            {% empty %}
                                暂无分类！
                            {% endfor %}
                        </ul>
                    </div>
                <div class="widget widget-archives">
                        <h3 class="widget-title">归档</h3>
                        <ul>
                            {% for time in time_list %}
                                <li>
                                    <a href="/time_{{ time.0 }}/?page=1">{{ time.0 }}</a>
                                </li>
                            {% endfor %}
                        </ul>
                    </div>

                    <div class="widget widget-tag-cloud">
                        <h3 class="widget-title">搜索</h3>
                        <ul>
                            <form action="/post/" method="POST">
                         <span><font>ip:</font></span>
                          <input type="text" name="ip">
                          <input type="submit" value="ip归属地">
                      </form>
                        <form action="/cat_title/" method="POST">
                         <span><font>问题:</font></span>
                          <input type="text" name="title">
                          <input type="submit" value="提交">
                      </form>

                        </ul>
                    </div>
                <div class="widget widget-archives">
                        <h3 class="widget-title">友情链接</h3>
                        <ul>

                                <li>
                                    <a href="https://gitee.com/zhaohengping">&copy; 码云</a>

                                </li>
                            <li>
                                <a href="https://blog.csdn.net/zhplz123">&copy; CSDN</a>
                            </li>

                        </ul>
                    </div>

                </aside>
            </div>
        </div>
    </div>
{% endblock %}





